import { postFile, postRequest } from '@/utils/postRequest';
import request from '@/utils/request';
//通过ID获取单个视频信息
export async function delHomepageVersion(params: any) {
  return request('/api/v1/homepage/delHomepageVersion', {
    method: 'POST',
    params: params,
  });
}

export async function getHomepageVersionList(params: any) {
  return request('/api/v1/homepage/getHomepageVersionList', {
    method: 'GET',
    params:params
  });
}

export async function getModuleList(params) {
  return request('/api/v1/homepage/getModuleList', {
    method: 'POST',
    data: params,
  });
}

export async function restoreWithVersion(params) {
  return request('/api/v1/homepage/restoreWithVersion', {
    method: 'POST',
    data: params,
  });
}
export async function updateModuleList(params) {
  return request('/api/v1/homepage/updateModuleList', {
    method: 'POST',
    data: params,
  });
}
